home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Blitting Class Library / Secure Macintosh Ports / SecureGWorld.h < prev    next >
Encoding:
Text File  |  1995-10-20  |  984 b   |  45 lines  |  [TEXT/CWIE]

  1. // SecureGWorld.h, the SecureGWorld class, useful for generating GWorlds
  2. //    for those who do not use a framework to make GWorlds for them.
  3.  
  4. // copyright © 1995, Macneil Shonle. All rights reserved.
  5.  
  6. #ifndef __SECUREGWORLD__
  7. #define __SECUREGWORLD__
  8.  
  9. #ifndef __SECUREMACPORT__
  10. #include <SecureMacPort.h>
  11. #endif
  12.  
  13. #ifndef __QDOFFSCREEN__
  14. #include <QDOffscreen.h>
  15. #endif
  16.  
  17. #ifndef __PIXELTYPES__
  18. #include <PixelTypes.h>
  19. #endif
  20.  
  21. #include <exception>
  22. #include <new>
  23.  
  24.         // class SecureGWorld
  25. class SecureGWorld : public SecureMacPort {
  26. public:
  27.     SecureGWorld(const Rect& bounds, BitDepth =kEightBit, CTabHandle =nil)
  28.         throw(xalloc, invalidargument);
  29.     virtual ~SecureGWorld();
  30.     
  31.     Rect& portRect() const;
  32.     BitMapPtr bitMap() const;
  33.     short width() const;
  34.     short height() const;
  35.     CGrafPtr getMacPort() const;
  36.     GDHandle getMacGD() const;
  37.     virtual operator GWorldPtr() const;
  38.  
  39. private:
  40.     GWorldPtr gworld;
  41.     SecureGWorld(const SecureGWorld&);
  42.     SecureGWorld& operator=(const SecureGWorld&);
  43. };
  44.  
  45. #endif